package day14.BingFa;

import java.util.Hashtable;

public class HashtableDome {
    public static void main(String[] args) throws InterruptedException {
        Hashtable<String,String>list=new Hashtable<>();
        Thread t1=new Thread(()->{
            for (int i = 1; i <25; i++) {
                list.put(i+"",i+"");
            }
        });
        Thread t2=new Thread(()->{
            for (int i = 25; i <= 50; i++) {
                list.put(i+"",i+"");
            }
        });
        t1.start();
        t2.start();
        Thread.sleep(1000);
        for (int i = 1; i <= 50; i++) {
            System.out.println(list.get(i+""));
        }
    }
}
